import request from '@/utils/request'

// 删除单个轮播图
export function addOrder() {
  return request({
    url: 'order/add-order',
    method: 'post'
  })
}

// 订单详情
export function orderDetail(params) {
  return request({
    url: 'order/order-detail',
    method: 'get',
    params
  })
}

// 修改订单信息
export function updateOrder(data) {
  return request({
    url: 'order/upte_order',
    method: 'post',
    data
  })
}

// 获得订单总数
export function getLisyCount(params) {
  return request({
    url: 'order/get_list_count',
    method: 'get',
    params
  })
}

// 查询导出
export function queryDownload(params) {
  return request({
    url: 'order/download_query',
    method: 'get',
    responseType: 'blob',
    params
  })
}

// 勾选导出
export function pickDownload(params) {
  return request({
    url: 'order/download_pick',
    method: 'get',
    responseType: 'blob',
    params
  })
}
